/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-10-06
 * Time: 21:25
 */
public class TestStatic {
    public static int least(int []arr) {
        int min = arr[0];
        for(int i=0; i<arr.length; i++) {
            if( arr[i] < min) {
                min = arr[i];
            }
        }
        return min;
    }

    public static void main(String[] args) {
        int []arr = {8,3,7,88,9,23};
        System.out.println("最小值是 = " + TestStatic.least(arr));
    }
}
